class UserAccount {

   
    String email
    String password
    String firstName
    String lastName
    String phone

    static constraints = {
        email(email:true, unique: true, nullable: false, unique: true, blank: false)
        password(nullable: false, size:5..10, blank: false)
        firstName(nullable: false, blank: false)
        lastName(nullable: false, blank: false)
       //phone(blank:false, unique:true, matches:/^\([1-9]\d{2}\)\s?\d{3}\-\d{4}$/)
    }

}